# -*- coding: utf-8 -*-#
#-------------------------------------------------------------------------------
# 建立者:       王景渊  
# Name:         随堂练习03
# Description:
# Author:       dell
# Date:         2019/2/27
#-------------------------------------------------------------------------------
from   string  import Template
# 定义一个模板
temlate = Template('$s 是我最擅长的$lang语言')
print(temlate.substitute(s = 'python,php,lua' ,lang ='脚本'))
# 使用substitute方法去代替$*

